﻿using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class MdAttachmentTable : TableInfo
	{
		public const string C_TABLENAME = "Md_Attachment"; 

		public const string C_ATTACHMENTID = "ATTACHMENTID";
		public const string C_FILETYPE = "FILETYPE";
		public const string C_FILESIZE = "FILESIZE";
		public const string C_UPDATETIME = "UPDATETIME";
		public const string C_FILEURL = "FILEURL";
		public const string C_FILENAME = "FILENAME";
		public const string C_FORMTYPE = "FORMTYPE";
		public const string C_FORMID = "FORMID";
		public const string C_STATUS = "STATUS";
				
		public MdAttachmentTable()
		{
			_tableName ="Md_Attachment";
		}

		protected static MdAttachmentTable _current;

		public static MdAttachmentTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new MdAttachmentTable();

			_current.Add(C_ATTACHMENTID, new ColumnInfo(C_ATTACHMENTID, "", true, typeof(String), 50));
			_current.Add(C_FILETYPE, new ColumnInfo(C_FILETYPE, "", false, typeof(String), 30));
			_current.Add(C_FILESIZE, new ColumnInfo(C_FILESIZE, "", false, typeof(Int32?)));
			_current.Add(C_UPDATETIME, new ColumnInfo(C_UPDATETIME, "", false, typeof(DateTime?)));
			_current.Add(C_FILEURL, new ColumnInfo(C_FILEURL, "", false, typeof(String), 1000));
			_current.Add(C_FILENAME, new ColumnInfo(C_FILENAME, "", false, typeof(String), 200));
			_current.Add(C_FORMTYPE, new ColumnInfo(C_FORMTYPE, "", false, typeof(String), 20));
			_current.Add(C_FORMID, new ColumnInfo(C_FORMID, "", false, typeof(String), 20));
			_current.Add(C_STATUS, new ColumnInfo(C_STATUS, "", false, typeof(String), 1));
						
		}

		public ColumnInfo ATTACHMENTID
		{
			get { return this[C_ATTACHMENTID];}
		}

		public ColumnInfo FILETYPE
		{
			get { return this[C_FILETYPE];}
		}

		public ColumnInfo FILESIZE
		{
			get { return this[C_FILESIZE];}
		}

		public ColumnInfo UPDATETIME
		{
			get { return this[C_UPDATETIME];}
		}

		public ColumnInfo FILEURL
		{
			get { return this[C_FILEURL];}
		}

		public ColumnInfo FILENAME
		{
			get { return this[C_FILENAME];}
		}

		public ColumnInfo FORMTYPE
		{
			get { return this[C_FORMTYPE];}
		}

		public ColumnInfo FORMID
		{
			get { return this[C_FORMID];}
		}

		public ColumnInfo STATUS
		{
			get { return this[C_STATUS];}
		}

		
	}
}


